<template>
  <div class="person1">
    <h2>姓名：{{ person1.name }}</h2>
    <h2>年龄：{{ person1.age }}</h2>
  </div>
</template>

<script lang="ts">
export default {
  name: 'Person1'
}
</script>


<script setup lang="ts">
import {reactive} from "vue";

let person1 = reactive(
    {name: "张三", age: 18}
);
</script>

<style scoped>
.person1 {
  background-color: skyblue;
  box-shadow: 0 0 10px;
  border-radius: 10px;
  padding: 20px;
}
</style>